﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ShowListAccount.ascx.cs" Inherits="Web_Pages_UserControls_ShowListAccount" %>
<asp:GridView ID="gvListAccount" runat="server" AllowPaging="True" 
    AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
    GridLines="None" PageSize="3" 
    onpageindexchanged="gvListAccount_PageIndexChanged" 
    onpageindexchanging="gvListAccount_PageIndexChanging" 
    onrowcancelingedit="gvListAccount_RowCancelingEdit" 
    onrowediting="gvListAccount_RowEditing">
    <AlternatingRowStyle BackColor="White" />
    <Columns>
        <asp:BoundField DataField="Username" HeaderText="Tài khoản" />
        <asp:BoundField DataField="Email" HeaderText="Địa chỉ Email" />
        <asp:BoundField DataField="CreateTime" HeaderText="Thời điểm tạo" />
        <asp:BoundField DataField="Active" HeaderText="Trạng thái" />
        <asp:TemplateField HeaderText="Quyền">
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# Eval("Role.RoleName") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Tùy chọn">
            <ItemTemplate>
                <a href="../WebContents/EditAccount.aspx?Username=<%#Eval("Username") %>" >Cập Nhật</a>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
    <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
    <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
    <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
    <SortedAscendingCellStyle BackColor="#FDF5AC" />
    <SortedAscendingHeaderStyle BackColor="#4D0000" />
    <SortedDescendingCellStyle BackColor="#FCF6C0" />
    <SortedDescendingHeaderStyle BackColor="#820000" />
</asp:GridView>

